<?php
class About extends CI_Controller {
	function __construct() {
		parent::__construct ();
		$this->load->helper ( 'url' );
	}
	
	
	function content() {
		$this->load->model ( 'Mabout' );
		$data ['uid'] = $this->session->userdata ( 'uid' );
		$data ['name'] = $this->session->userdata ( 'uname' );
		$data['cardAboutList']=$this->Mabout->getAboutListbyClass( 'C' );
		$data['aboutList']=$this->Mabout->getAboutListbyClass( 'A' );
		
		$id = $this->uri->segment ( 3, 0 );
		
		$data ['about'] = $this->Mabout->getAboutbyId ( $id );
		if ($data ['about'] ['class'] == 'C')
			$data ['class1'] = '纽斯达卡';
		elseif ($data ['about'] ['class'] == 'A')
			$data ['class1'] = '关于我们';
		$data ['class2'] = $data ['about'] ['name'];
		if ($data ['about']) {
			$data ['success'] = TRUE;
		} else
			$data ['success'] = FALSE;
		$this->load->model ( 'Mnews' );
		$data ['relatedList'] = $this->Mnews->getRelatedList ();
		$this->load->view ( 'about', $data );
	}
}